<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    /*方法1*/
    var arr = [1,5,9,7,3,8,12,85,61,75];
    var newarr = [];
    var o = 0;
    for (var i = 0;i < arr.length;i++){
        if (arr[i] > 10){
            newarr[o] = arr[i];
            o++;
        }
    }
    console.log(newarr);
    /*方法2*/
    var arr2 = [1,5,9,7,3,8,12,85,61,75];
    var newarr2 = [];
    for (var p = 0;p < arr2.length;p++){
        if (arr2[p] > 10){
            newarr2[newarr2.length] = arr2[p];
        }
    }
    console.log(newarr2);
</script>
<body>

</body>
</html>